let vm = null;

const sendThis = (_this) => {
  console.log(_this, 'this')
  vm = _this;
};
export default {
  sendThis,
  //添加至分组
  Columns: [{
    title: '序号',
    key: 'name',
    minWidth: 40,
    align: 'center',
    render(h, params) {
      return h('div', params.row._index - 0 + 1)
    },
  },
  {
    title: '分组名称',
    key: 'groupName',
    minWidth: 100,
    align: 'center',
    render: (h, params) => {
      return h('div', params.row.groupName ? params.row.groupName : '-')
    },
  },
  {
    title: '组员人数',
    key: 'teamCount',
    minWidth: 100,
    align: 'center',
    render: (h, params) => {
      return h('div', params.row.teamCount ? params.row.teamCount : '-')
    },
  },
  {
    title: '操作',
    key: 'operation',
    width: 180,
    align: 'center',
    render: (h, params) => {
      return h('div', [
        h(
          'a', {
            style: {
              marginRight: '10px',
            },
            on: {
              click: (e) => {
                e.stopPropagation()
                vm.editChannel(params.row, 'edit')
              },
            },
          },
          '分配至分组'
        ),
      ])
    },
  }, ]
}